package com.fcscs.ecms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fcscs.cservice.domain.MainMenuItem;
import com.fcscs.cservice.domain.Versions;
import com.fcscs.cservice.domain.model.EntityVersionView;
import com.fcscs.cservice.domain.model.MainMenuItemView;
import com.fcscs.cservice.ws.schema.common.MenuListView;
import com.fcscs.cservice.ws.schema.common.PictureFrameView;
import com.fcscs.ecms.dao.ECMSMainMenuDao;
import com.fcscs.ecms.service.ECMSMainMenuManager;

@Service("ecmsMainMenuManager")
public class ECMSMainMenuManagerImpl implements ECMSMainMenuManager {

	@Autowired
	ECMSMainMenuDao ecmsMmenuDao;
	
	@Override
	public MainMenuItem getMainMenuItem(long id) {
		return ecmsMmenuDao.getMainMenuItem(id);
	}

	@Override
	public List<MainMenuItem> getMainMenuItemList(long orgId, long propId,boolean isCurrent) {
		return ecmsMmenuDao.getMainMenuItemList(orgId, propId, isCurrent);
	}

	@Override
	public List<MainMenuItem> getMainMenuItemList(long orgId, long propId,long versionId) {
		return ecmsMmenuDao.getMainMenuItemList(orgId, propId, versionId);
	}

	@Override
	public List<MainMenuItem> saveMainMenuItemList(List<MainMenuItem> mmiList) {
		return ecmsMmenuDao.saveMainMenuItemList(mmiList);
	}

	@Override
	public MainMenuItem createMainMenuItem(MainMenuItem mmi) {
		return ecmsMmenuDao.createMainMenuItem(mmi);
	}

	@Override
	public MainMenuItem saveMainMenuItem(MainMenuItem mmi) {
		return ecmsMmenuDao.saveMainMenuItem(mmi);
	}

	@Override
	public boolean deleteMainMenuItem(MainMenuItem mmi) {
		return ecmsMmenuDao.deleteMainMenuItem(mmi);
	}

	@Override
	public boolean permDeleteMainMenuItem(MainMenuItem mmi) {
		return ecmsMmenuDao.permDeleteMainMenuItem(mmi);
	}

	@Override
	public boolean isMainMenuItemTaken(long orgId, long propId,String menuType, Long id, long versionId) {
		return ecmsMmenuDao.isMainMenuItemTaken(orgId, propId, menuType, id, versionId);
	}

	@Override
	public List<MainMenuItemView> getMainMenuItemViewList(long orgId,long propId) {
		return ecmsMmenuDao.getMainMenuItemViewList(orgId, propId);
	}

	@Override
	public boolean copyVersion(Versions fromVer, Versions toVer) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public List<EntityVersionView> getEntityVersionViewList(long orgId,
			long propId) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public PictureFrameView getPictureFrameViews(long orgid, long propId ,long id) {
		// TODO Auto-generated method stub
		return ecmsMmenuDao.getPictureFrameViews(orgid, propId , id);
		
	}

	@Override
	public List<MenuListView> getMenuListViews(long orgId, long propId,String langId ) {
		// TODO Auto-generated method stub
		return ecmsMmenuDao.getMenuListViews(orgId, propId, langId);
	}

	@Override
	public List<MenuListView> getMasterMenuListViews(long orgId, long propId,String langId) {
		// TODO Auto-generated method stub
		return ecmsMmenuDao.getMasterMenuListViews(orgId, propId, langId );
	}

	@Override
	public PictureFrameView getPictureFrameViews(long orgId, long propId,int type) {
		// TODO Auto-generated method stub
		return ecmsMmenuDao.getPictureFrameViews(orgId, propId,type);
	}

}
